
<%@ page import="net.loststone.*" %>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="layout" content="main" />
    <title>PatoPay</title>
  <g:javascript library="prototype" />
</head>
<body id="search">
  <div class="body">
    <g:form controller="inici" method="post">
      <g:textField name="city_name" value="${prev_search}" />
      <g:actionSubmit id="search-button" action="search" value="Buscar" />
    </g:form>
    <g:if test="${error_msg}">
      <span class="error">${error_msg}</span>
    </g:if>
    <g:if test="${similars}">
      <h1>Quizás quiso decir...</h1>
      <ul>
        <g:each in="${similars}" status="i" var="town">
          <li><g:link id="${town?.gov_id}">${town?.name}</g:link></li>
        </g:each>
      </ul>
    </g:if>
  </div>
</body>
</html>
